		<?php echo form_open(base_url()."admin"); ?>
			<table>
				<?php foreach($posts as $post):?>
					<tr>
						<td>
							<input type="checkbox" name="approved[]" value="<?= $post->post_id ?>" />
						</td>
						<td>
							<a href="<?= base_url() . 'media/' . $post->img_path_full ?>"><img src="<?= base_url() . 'media/' . $post->img_path_small ?>" /></a>
						<td>
							<?= $post->description ?>
						</td>
						<td>
							<?= $post->username ?>
						</td>
						<td>
							<?= $post->ip ?>
						</td>
						<td>
							<a href="<?= base_url() .'admin/disapprove/' . $post->post_id ?>">Disapprove</a>
						</td>
					</tr>
				<?php endforeach;?>	
			</table>
			<button type="submit">Submit</button>
		</form>

